from rosa.rosa_apps.sqlalchemy_apps.models import User
from rosa.rosa_apps.sqlalchemy_apps.types import UserCreateData, UserUpdateData, UserQueryData
from rosa.love_is_blue import SQLAlchemyCRUDRouter

user_router = SQLAlchemyCRUDRouter(
    User,
    UserQueryData,
    UserCreateData,
    UserUpdateData,
    prefix="/user",
    tags=["用户管理"],
    verbose_name="user",
    verbose_name_plural="users"
)

tags_metadata = [
    {"name": "用户管理", "description": "rosa用户管理模块"}
]
